//
//  AppDelegate.m
//  YueYue
//
//  Created by hulu001 on 2023/5/22.
//

#import "AppDelegate.h"
#import "AppDelegate+AppService.h"

@interface AppDelegate ()

@end

@implementation AppDelegate



- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [HLRunTime shareInstance].isFood = NO;
    // Override point for customization after application launch.
    [self configHTTP];
    [self configNIM];
    [self configRTCKit];
    [self configWindowOptions:launchOptions];
    [self configIfly];
    [self configPlatforms];
    [self configOpenInstall];
    return YES;
}

- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler{
    //处理通过openinstall一键拉起App时传递的数据
    return [self continueUserActivity:userActivity];
}

//适用目前所有iOS版本
-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{
    //处理通过openinstall URL scheme拉起App的数据
    [self handLinkURL:url];
    //其他第三方回调；
    return YES;
}


//iOS9以上，会优先走这个方法
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(nonnull NSDictionary *)options{
    //处理通过openinstall URL scheme拉起App的数据
    [self handLinkURL:url];
    //其他第三方回调；
     return YES;
}


@end
